﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Drawing;

using Vitruvian.Services;
using Vitruvian.Logging;

namespace SpotItServer
{
    class Program
    {
        private static Logger logger = Logger.GetLogger(typeof(Program));

        static void Main(string[] args)
        {
            ServiceRegistry.Load(typeof(Program), @"Config.Services.xml");            
            ServiceRegistry.Init();

            foreach (IService service in ServiceRegistry.GetServices<IService>())
                logger.DebugFormat("{0}, type={1}, id={2}", service.Name, service.GetType().ToString(), service.Id);

            ServiceRegistry.Run();
            ServiceRegistry.Cleanup();
        }
    }
}
